<div class="proedit">
	<form action="<?php echo url('manager/add');?>" method="post" id="editForm">
		<table width="330">
			<tr height="40">
				<td width="120" align="right" class="inputtxt"><span>管理员</span></td>
				<td align="left">
					<input type="text" name="userName" class="require" value="" />
				</td>
			</tr>
			<tr height="40">
				<td align="right" class="inputtxt"><span>密码</span></td>
				<td align="left"><input name="passwd1" class="require" type="password" /></td>
			</tr>
			<tr height="40">
				<td align="right" class="inputtxt"><span>确认密码</span></td>
				<td align="left"><input name="passwd2" class="require" type="password" /></td>
			</tr>
			<tr align="right"><td colspan="2"><input type="submit" value="添加" id="catesub" /></td></tr>
		</table>
	</form>
</div>
<script type="text/javascript">
$(document).ready(function(){
	$("#wBox .wBox_body").css("width","400");
	$("#wBox .wBox_body").css("height","200");
	submitForm("#editForm",{
		dataType:'json',
		success:function(data){
				if(data.i=='ok'){
					location.href="<?php echo url('manager/index');?>";
				}else{
					alert(data.i);
				}
			},
	});
});
</script>
